<%@ page language="java" pageEncoding="utf-8" import="java.util.*"%>
<%@ include file="/common/taglibs.jsp"%>
<c:if test="${searchMethod == null }"><c:set var="searchMethod" value="search"/></c:if>
<tr>
<th colspan="28">
 	<div class="page-block" style="margin-bottom: 5px;" align="center">
 		<a href="?method:${searchMethod}&pageSize=${pagination.pageSize}&pageNo=1&${conditionStr}#comment">
 			<font style='font-size:14px !important'>首页</font>
 		</a>
	 	<c:set var="pageBegin" value="${pagination.pageNo-5}"/>
	 	<c:if test="${pageBegin < 1}"><c:set var="pageBegin" value="1"/></c:if>
	 	<c:set var="pageEnd" value="${pagination.pageNo+5}"/>
	 	<c:if test="${pageEnd > pagination.pageCount}"><c:set var="pageEnd" value="${pagination.pageCount}"/></c:if>
	 	<c:forEach begin="${pageBegin}" end="${pageEnd}" varStatus="status">
	 		<a href="?method:${searchMethod}&pageSize=${pagination.pageSize}&pageNo=${status.index}&${conditionStr}#comment">
				<c:if test="${status.index == pagination.pageNo}"><font style='font-size:14px !important;color: black;  padding: 0.5px;margin:1px'>${status.index}</font></c:if>
	 			<c:if test="${status.index != pagination.pageNo}"><font style='font-size:14px !important;margin:1px'>${status.index}</font></c:if>
	 		</a>
	 	</c:forEach>
		<a href="?method:${searchMethod}&pageSize=${pagination.pageSize}&pageNo=${pagination.pageCount}&${conditionStr}#comment">
			<font style='font-size:14px !important'>末页</font>
		</a>
 	</div>
	<div class="page-stat" style="font-size: 14px;padding-top: 5px;" align="center">
		<span>总记录: <c:out value="${pagination.totalCount}" /></span>
		<span>每页记录: <input type="text" size="3" id="pageSize" name="pageSize" value="${pagination.pageSize}" style="width:20px;height:12px;"></span>
		<span>总页数: <c:out value="${pagination.pageCount}" /></span>
		<span>当前页: <input type="text" id="jumpToPageNo"  style="height:12px" value="${pagination.currentPage}" onkeydown="this.onkeyup();" onkeyup="this.size=(this.value.length>1?this.value.length:1);" size="1"/>
		</span><a href="#" onclick="paginationJump();return false;">go</a>
	</div>
	<style type="text/css">
	.page-stat a{
	font-size:16px;
	margin-left:5px
	}
	.page-stat a:hover{
	color: #FF00FF
	}
	</style>
 	<script type="text/javascript">
 	function paginationJump(){
		 var locationStr = "?method:${searchMethod}&pageSize="+document.getElementById("pageSize").value+"&pageNo="+document.getElementById("jumpToPageNo").value+"&${conditionStr}";
		/* 	locationStr = "?method:${searchMethod}&pageSize="+document.getElementById("pageSize").value+"&pageNo="+document.getElementById("jumpToPageNo").value+"&${conditionStr}#comment"; */
		window.location=locationStr;
 	}
 	</script>
</th>
</tr>